﻿using System;

namespace FireStarterModeller.UI.ViewEditor
{
    /// <summary>
    /// Provides arguments to attach for an event involving a piece of text that should be passed with the event
    /// </summary>
    public class StringEventArgs : EventArgs
    {
        /// <summary>
        /// Constructor to initialise a new set of arguments
        /// </summary>
        /// <param name="text">The text to pass with the event</param>
        public StringEventArgs(string text)
        {
            Text = text;
        }

        /// <summary>
        /// Gets the text that was intended to pass with the event
        /// </summary>
        public string Text { get; private set; }
    }
}